﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


class Program
{
    static void Main(string[] args)
    {
        List<string> result = new List<string>();
        using (StreamReader file = new StreamReader(@"..\..\list.txt"))
        {
            string line = file.ReadLine();
            while (line!=null && line!="")
            {

                result.Add(line);
               
                Console.WriteLine(line);
            }
            
        }

        
        
        result.Sort();
        foreach (var item in result)
        {
            Console.WriteLine(item);
        }
        
    }
}

